package com.liuzu.esys.controller;

import com.liuzu.esys.common.R;
import com.liuzu.esys.service.StatisticsService;
import com.liuzu.esys.vo.StatisticsVo;
import com.liuzu.esys.vo.TypeBarVo;
import com.liuzu.esys.vo.TypePieVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/statistics")
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;


    @RequestMapping("/echartsLine")
    public R echartsLine(){
        List<StatisticsVo> list = statisticsService.orderLineData();
        return R.ok().data("orderLine",list);
    }
}
